<?php
/**
 * 
 *
 * @copyright	Copyright 2009-2013   
 * @license	LGPL (http://www.gnu.org/licenses/lgpl.html)
 * @author	XinHui Wang <84523559@qq.com>
 * @package	autoweb
 * @version	version
 * @link		http://hi.baidu.com/wangxinhui419/home
 */
class control_default extends control
{	
	
	function __construct($inPath)
    {
        parent::__construct();
    }
	
	public function pageindex($inPath)
	{
		$params=array('codeurl'=>$this->createUrl('/default/LoginCode/',array('r'=>rand())));
		$this->render('admin/login.tpl',$params);
	}
	
	public function pageLoginCode($inPath)
	{
		session_start();
		$scaptcha=new SCaptcha();
		$scaptcha->CreateImage();
	}
}